<!-- File: /app/View/Posts/add.ctp -->

<h1 style="font-size: 25px; color: blue;">Add Post</h1> <hr style="margin-bottom: 30px;">

<div class="post-edit action">
<?php
	$is_publish = array(0 => "Private", 1 => "Publish");
    echo $this->Form->create('Post', array('class' => 'centered'));
    echo $this->Form->input('title', array('label' => 'Title'));
    echo $this->Form->input('body');
    echo $this->Form->input('created', array('type' => 'hidden'));
    echo $this->Form->input('modified', array('type' => 'hidden'));
    echo $this->Form->input('is_published', array('type'=>'select', 'options'=>$is_publish, 'default'=>1), array('class'=>''));
    echo $this->Form->submit('Save', array('class' => 'fg-white bg-orange', 'after' => $this->Html->link('Cancel', array('action' => 'index'), array('class'=>'button medium')))
                );
    echo $this->Form->end();
?>
</div>